import { login } from '@/api';
import { QueryFilter, useAntdList } from '@web-design/ui';
import { Button, Card, Form, Space, Table } from 'antd';
import { ColumnProps, ColumnType, ColumnsType } from 'antd/lib/table';
import React from 'react';
const App = () => {
    const [form] = Form.useForm();
    const { tableProps, search } = useAntdList(login, { form })
    const columns: ColumnsType<any> = [
        {
            title: '科目ID'
        }, {
            title: '科目名称'
        },{
            title: '科目级别'
        },{
            title: '操作',
            render(){
                return <Space>
                    <Button type='link'>编辑</Button>
                </Space>
            }
        }
    ]
    return (<Card>
       
        <Table columns={columns} {...tableProps} />
    </Card>)
}
export default App